package cn.dust.design.pattern.behavioral.command;

/**
 * @Author: dust
 * @Date: 2019/11/28 17:26
 */
public class CloseCommand implements Command{

    private CourseVideo courseVideo;


    public CloseCommand(CourseVideo courseVideo) {
        this.courseVideo = courseVideo;
    }

    @Override
    public void execute() {
        courseVideo.close();
    }
}
